import { Component, OnInit } from '@angular/core';
import { CommonService } from '../../../shared/services/common.service';
import { Store } from '@ngxs/store';
import { SellerService } from '../seller.service';

@Component({
  selector: 'app-goods',
  templateUrl: './goods.component.html',
  styleUrls: ['./goods.component.scss'],
})
export class GoodsComponent implements OnInit {

  constructor(
    private commonService: CommonService,
    private store: Store,
    private service: SellerService,
  ) {
  }

  ngOnInit(): void {
  }

  test1() {
    this.service.newShop({
      title: '微软（Microsoft）日版 Xbox Series S 新世代主机 家用家庭高清电视游',
      storeName: '数码海外京东自营专区',
      pic: 'https://img10.360buyimg.com/n7/jfs/t1/184935/32/24126/81050/625e67e6E3800775d/71d28ddf287dceca.jpg',
      collect: false,
    });
  }
}
